Learn R Programming

disk.frame (version 0.1.0)

[.disk.frame: [ interface for disk.frame using fst backend

Description

[ interface for disk.frame using fst backend

Usage

# S3 method for disk.frame
[(df, ..., keep = NULL, rbind = TRUE,
  use.names = TRUE, fill = FALSE, idcol = NULL)

Arguments

df

a disk.frame

...

same as data.table

keep

the columns to srckeep

rbind

Whether to rbind the chunks. Defaults to TRUE

use.names

Same as in data.table::rbindlist

fill

Same as in data.table::rbindlist

idcol

Same as in data.table::rbindlist

Examples

Run this code
# NOT RUN {
cars.df = as.disk.frame(cars)
speed_limit = 50
cars.df[speed < speed_limit ,.N, cut(dist, pretty(dist))]

# clean up
delete(cars.df)
# }

Run the code above in your browser using DataLab